﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <link href="../css/main.css" rel="stylesheet" type="text/css" />
    <script src="../js/jquery-1.5.2.min.js" type="text/javascript"></script>
    <link href="../css/jquery.loadmask.css" rel="stylesheet" type="text/css" />
    <script src="../js/ligerui.min.js" type="text/javascript"></script>
    <script src="../Js/json2.js" type="text/javascript"></script>
    <script src="../Js/jquery.loadmask.min.js" type="text/javascript"></script>
    <script src="../Js/conmon.js" type="text/javascript"></script>
    <title>创建随机模型</title>
    <style type="text/css">
        .table
        {
            background-color: #84A0C4;
            border: 1px solid #84A0C4;
        }
        .td
        {
            background-color: #ffffff;
        }
    </style>
    <script type="text/javascript">
        var roleID = 0;
        var roleName = "";
        var areID = 0;
        var areRoleID = 0;
        var chkAreRoleIDs = "";
        var chkAreRoleNames = "";
        var chkSameRole;
        $(function () {
            pWind = parent.window.parent.window.getWindow();
            if (pWind == null) {
                showErrorTip("参数错误！");
                closeRefresh(false, "");
            }
            roleID = pWind.$("#Rid").val();
            roleName = pWind.$("#roleName").val();
            areID = pWind.$("#Aid").val();
            areRoleID = pWind.$("#areRoleID").val();
            chkAreRoleIDs = pWind.$("#chkAreRoleIDs").val();
            chkAreRoleNames = pWind.$("#chkAreRoleNames").val();
            chkSameRole = pWind.chkSameRole;

            pWind.$("#Rid").val("0");
            pWind.$("#roleName").val("");
            pWind.$("#Aid").val("-1");
            pWind.$("#areRoleID").val("");
            pWind.$("#chkAreRoleIDs").val("");
            pWind.$("#chkAreRoleNames").val("");

            //如果是多选且选择的不是同一角色，则将roleid设置为-1,只显示公共题
            if (chkSameRole == false) {
                roleID = -1;
                $("#lblAreRoleModel").html(chkAreRoleNames);
                $("#trSingle").css("display", "none");
                $("#trMulti").css("display", "none");
                $("#trJudge").css("display", "none");
                $("#trFillBlank").css("display", "none");
                $("#trQA").css("display", "none");
                $("#trTyping").css("display", "none");
            }
            else {
                $("label[id^='lblAreRole']").each(function (i, item) { $(item).html(roleName); });
            }
            $("#btnClose").click(function () { closeRefresh(false, ""); });

            $("#chkSingle").change(function () { ChkTopicType(1, this.checked); });
            $("#chkMulti").change(function () { ChkTopicType(2, this.checked); });
            $("#chkJudge").change(function () { ChkTopicType(3, this.checked); });
            $("#chkFillBlank").change(function () { ChkTopicType(4, this.checked); });
            $("#chkQA").change(function () { ChkTopicType(5, this.checked); });
            $("#chkTyping").change(function () { ChkTopicType(6, this.checked); });

            $("#txtSingle").change(function () { ChangeTopicCount($(this), 1, false); });
            $("#txtSingleCommon").change(function () { ChangeTopicCount($(this), 1, true); });
            $("#txtMulti").change(function () { ChangeTopicCount($(this), 2, false); });
            $("#txtMultiCommon").change(function () { ChangeTopicCount($(this), 2, true); });
            $("#txtJudge").change(function () { ChangeTopicCount($(this), 3, false); });
            $("#txtJudgeCommon").change(function () { ChangeTopicCount($(this), 3, true); });
            $("#txtFillBlank").change(function () { ChangeTopicCount($(this), 4, false); });
            $("#txtFillBlankCommon").change(function () { ChangeTopicCount($(this), 4, true); });
            $("#txtQA").change(function () { ChangeTopicCount($(this), 5, false); });
            $("#txtQACommon").change(function () { ChangeTopicCount($(this), 5, true); });
            $("#txtTyping").change(function () { ChangeTopicCount($(this), 6, false); });
            $("#txtTypingCommon").change(function () { ChangeTopicCount($(this), 6, true); });

            $("#txtSingleScore").change(function () { ChangePerScore($(this)); });
            $("#txtMultiScore").change(function () { ChangePerScore($(this)); });
            $("#txtJudgeScore").change(function () { ChangePerScore($(this)); });
            $("#txtFillBlankScore").change(function () { ChangePerScore($(this)); });
            $("#txtQAScore").change(function () { ChangePerScore($(this)); });
            $("#txtTypingScore").change(function () { ChangePerScore($(this)); });

            $("#txtSingleScore").ligerSpinner({ width: 60, type: 'int' });
            $("#txtSingleCommon").ligerSpinner({ width: 60, type: 'int' });
            $("#txtSingle").ligerSpinner({ width: 60, type: 'int' });
            $("#txtMultiScore").ligerSpinner({ width: 60, type: 'int' });
            $("#txtMultiCommon").ligerSpinner({ width: 60, type: 'int' });
            $("#txtMulti").ligerSpinner({ width: 60, type: 'int' });
            $("#txtJudgeScore").ligerSpinner({ width: 60, type: 'int' });
            $("#txtJudgeCommon").ligerSpinner({ width: 60, type: 'int' });
            $("#txtJudge").ligerSpinner({ width: 60, type: 'int' });
            $("#txtFillBlankScore").ligerSpinner({ width: 60, type: 'int' });
            $("#txtFillBlankCommon").ligerSpinner({ width: 60, type: 'int' });
            $("#txtFillBlank").ligerSpinner({ width: 60, type: 'int' });
            $("#txtQAleScore").ligerSpinner({ width: 60, type: 'int' });
            $("#txtQACommon").ligerSpinner({ width: 60, type: 'int' });
            $("#txtQA").ligerSpinner({ width: 60, type: 'int' });
            $("#txtTypingScore").ligerSpinner({ width: 60, type: 'int' });
            $("#txtTypingCommon").ligerSpinner({ width: 60, type: 'int' });
            $("#txtTyping").ligerSpinner({ width: 60, type: 'int' });
        });

        var _Single = 0;
        var _SinglePublic = 0;
        var _Multi = 0;
        var _MultiPublic = 0;
        var _Judge = 0;
        var _JudgePublic = 0;
        var _FillBlank = 0;
        var _FillBlankPublic = 0;
        var _QA = 0;
        var _QAPublic = 0;
        var _Typing = 0;
        var _TypingPublic = 0;
        function ChkTopicType(topicType, checked) {
            if (checked) {
                $("#divContent").mask("数据处理中，请稍候......");
                var params = { roleID: roleID, topicType: topicType, rnd: Math.random() };
                $.getJSON("../WebServer/ModelManage.ashx?Action=CountTopicByType", params, function (data) {
                    $("#divContent").unmask();
                    if (data == null) {
                        showErrorTip("操作失败，请重试!");
                        return;
                    }
                    $("#tableTotal").css("display", "block");
                    if (topicType == 1) {
                        $("#tableSingle").css("display", "block");
                        _Single = data.roleCount;
                        _SinglePublic = data.publicCount;
                        $("#lblSingle_TK").html(_Single);
                        $("#lblSingle_Public_TK").html(_SinglePublic);
                        $("#txtSingle").attr("realCount", _Single);
                        $("#txtSingleCommon").attr("realCount", _SinglePublic);
                        _Single = _Single > 0 ? 1 : 0;
                        _SinglePublic = 0;
                    }
                    else if (topicType == 2) {
                        $("#tableMulti").css("display", "block");
                        _Multi = data.roleCount;
                        _MultiPublic = data.publicCount;
                        $("#txtMulti").attr("realCount", _Multi)
                        $("#txtMultiCommon").attr("realCount", _MultiPublic);
                        $("#lblMulti_TK").html(_Multi);
                        $("#lblMulti_Public_TK").html(_MultiPublic);
                        _Multi = _Multi > 0 ? 1 : 0;
                        _MultiPublic = 0;
                    }
                    else if (topicType == 3) {
                        $("#tableJudge").css("display", "block");
                        _Judge = data.roleCount;
                        _JudgePublic = data.publicCount;
                        $("#txtJudge").attr("realCount", _Judge)
                        $("#txtJudgeCommon").attr("realCount", _JudgePublic);
                        $("#lblJudge_TK").html(_Judge);
                        $("#lblJudge_Public_TK").html(_JudgePublic);
                        _Judge = _Judge > 0 ? 1 : 0;
                        _JudgePublic = 0;
                    }
                    else if (topicType == 4) {
                        $("#tableFillBlank").css("display", "block");
                        _FillBlank = data.roleCount;
                        _FillBlankPublic = data.publicCount;
                        $("#txtFillBlank").attr("realCount", _FillBlank)
                        $("#txtFillBlankCommon").attr("realCount", _FillBlankPublic);
                        $("#lblFillBlank_TK").html(_FillBlank);
                        $("#lblFillBlank_Public_TK").html(_FillBlankPublic);
                        _FillBlank = _FillBlank > 0 ? 1 : 0;
                        _FillBlankPublic = 0;
                    }
                    else if (topicType == 5) {
                        $("#tableQA").css("display", "block");
                        _QA = data.roleCount;
                        _QAPublic = data.publicCount;
                        $("#txtQA").attr("realCount", _QA)
                        $("#txtQACommon").attr("realCount", _QAPublic);
                        $("#lblQA_TK").html(_QA);
                        $("#lblQA_Public_TK").html(_QAPublic);
                        _QA = _QA > 0 ? 1 : 0;
                        _QAPublic = 0;
                    }
                    else if (topicType == 6) {
                        $("#tableTyping").css("display", "block");
                        _Typing = data.roleCount;
                        _TypingPublic = data.publicCount;
                        $("#txtTyping").attr("realCount", _Typing)
                        $("#txtTypingCommon").attr("realCount", _TypingPublic);
                        $("#lblTyping_TK").html(_Typing);
                        $("#lblTyping_Public_TK").html(_TypingPublic);
                        //如果打字题大于1题，则只选择1题
                        if (_Typing > 1)
                            _Typing = 1;
                        _TypingPublic = 0;
                    }
                    CalcuteScore();
                });
            }
            else {
                if (topicType == 1)
                    $("#tableSingle").css("display", "none");
                else if (topicType == 2)
                    $("#tableMulti").css("display", "none");
                else if (topicType == 3)
                    $("#tableJudge").css("display", "none");
                else if (topicType == 4)
                    $("#tableFillBlank").css("display", "none");
                else if (topicType == 5)
                    $("#tableQA").css("display", "none");
                else if (topicType == 6)
                    $("#tableTyping").css("display", "none");
                CalcuteScore();
            }
        }

        var _TotalCount = 0;
        var _TotalScore = 0;
        function CalcuteScore() {
            var singleScore = 0;
            var singleCount = 0;
            if ($("#chkSingle").attr("checked")) {
                $("#txtSingleCommon").val(_SinglePublic);
                $("#txtSingle").val(_Single);
                singleCount = (_Single + _SinglePublic);
                singleScore = singleCount * parseInt($("#txtSingleScore").val());
                $("#lblSingleCount").html(singleCount);
                $("#lblSingleScore").html(singleScore);
            }

            var multiScore = 0;
            var multiCount = 0;
            if ($("#chkMulti").attr("checked")) {
                $("#txtMultiCommon").val(_MultiPublic);
                $("#txtMulti").val(_Multi);
                multiCount = (_Multi + _MultiPublic);
                multiScore = multiCount * parseInt($("#txtMultiScore").val());
                $("#lblMultiCount").html(multiCount);
                $("#lblMultiScore").html(multiScore);
            }

            var JudgeScore = 0;
            var JudgeCount = 0;
            if ($("#chkJudge").attr("checked")) {
                $("#txtJudgeCommon").val(_JudgePublic);
                $("#txtJudge").val(_Judge);
                JudgeCount = (_Judge + _JudgePublic);
                JudgeScore = JudgeCount * parseInt($("#txtJudgeScore").val());
                $("#lblJudgeCount").html(JudgeCount);
                $("#lblJudgeScore").html(JudgeScore);
            }

            var FillBlankScore = 0;
            var FillBlankCount = 0;
            if ($("#chkFillBlank").attr("checked")) {
                $("#txtFillBlankCommon").val(_FillBlankPublic);
                $("#txtFillBlank").val(_FillBlank);
                FillBlankCount = (_FillBlank + _FillBlankPublic);
                FillBlankScore = FillBlankCount * parseInt($("#txtFillBlankScore").val());
                $("#lblFillBlankCount").html(FillBlankCount);
                $("#lblFillBlankScore").html(FillBlankScore);
            }

            var QAScore = 0;
            var QACount = 0;
            if ($("#chkQA").attr("checked")) {
                $("#txtQACommon").val(_QAPublic);
                $("#txtQA").val(_QA);
                QACount = (_QA + _QAPublic);
                QAScore = QACount * parseInt($("#txtQAScore").val());
                $("#lblQACount").html(QACount);
                $("#lblQAScore").html(QAScore);
            }

            var TypingScore = 0;
            var TypingCount = 0;
            if ($("#chkTyping").attr("checked")) {
                $("#txtTypingCommon").val(_TypingPublic);
                $("#txtTyping").val(_Typing);
                TypingCount = (_Typing + _TypingPublic);
                TypingScore = TypingCount * parseInt($("#txtTypingScore").val());
                $("#lblTypingCount").html(TypingCount);
                $("#lblTypingScore").html(TypingScore);
            }

            _TotalCount = singleCount + multiCount + JudgeCount + FillBlankCount + QACount + TypingCount;
            _TotalScore = singleScore + multiScore + JudgeScore + FillBlankScore + QAScore + TypingScore;
            $("#lblTotalCount").html(_TotalCount);
            $("#lblTotalScore").html(_TotalScore);
        }

        function ChangeTopicCount(obj, topicType, isPublic) {
            var realCount = parseInt(obj.attr("realCount"));
            var writeCount = parseInt(obj.val());
            if (writeCount > realCount) {
                showErrorTip("选题数量不能大于题库存题数量， 题库数量为" + realCount + "！");
                writeCount = realCount;
            }
            if (writeCount < 0) {
                showErrorTip("选题数量不能小于0！");
                writeCount = 0
            }

            if (topicType == 1) {
                if (isPublic)
                    _SinglePublic = writeCount;
                else
                    _Single = writeCount;
            }
            else if (topicType == 2) {
                if (isPublic)
                    _MultiPublic = writeCount;
                else
                    _Multi = writeCount;
            }
            else if (topicType == 3) {
                if (isPublic)
                    _JudgePublic = writeCount;
                else
                    _Judge = writeCount;
            }
            else if (topicType == 4) {
                if (isPublic)
                    _FillBlankPublic = writeCount;
                else
                    _FillBlank = writeCount;
            }
            else if (topicType == 5) {
                if (isPublic)
                    _QAPublic = writeCount;
                else
                    _QA = writeCount;
            }
            else if (topicType == 6) {
                //打字题最多选择1题
                if (isPublic)
                    _TypingPublic = writeCount;
                else
                    _Typing = writeCount;
                if (_Typing + _TypingPublic > 1) {
                    _Typing = 1;
                    _TypingPublic = 0;
                    showErrorTip("打字题最多选择1题！");
                }
            }
            CalcuteScore();
        }

        //检查每题的分数
        function ChangePerScore(obj) {
            var score = parseInt(obj.val());
            if (score <= 0) {
                showErrorTip("每题的分数必须0分");
                obj.val(1);
            }
            CalcuteScore();
        }

        function CheckTopicCount(typeName, name, topicTitle) {
            if ($("#" + typeName).attr("checked")) {
                var totalCount = 0;
                var realCount = parseInt($("#" + name).attr("realCount"));
                var writeCount = parseInt($("#" + name).val());
                if (writeCount > realCount) {
                    showErrorTip("【" + topicTitle + "】选题数量不能大于题库存题数量，不能小于0！");
                    return false;
                }
                if (writeCount < 0) {
                    showErrorTip("【" + topicTitle + "】选题数量不能小于0！");
                    return false;
                }
                totalCount = totalCount + writeCount;
                //公共题库
                var realCount = parseInt($("#" + name + "Common").attr("realCount"));
                var writeCount = parseInt($("#" + name + "Common").val());
                if (writeCount > realCount) {
                    showErrorTip("【" + topicTitle + "-公共题库】选题数量不能大于题库存题数量,题库数量为" + realCount + "！");
                    return false;
                }
                if (writeCount < 0) {
                    showErrorTip("【" + topicTitle + "-公共题库】选题数量不能小于0！");
                    return false;
                }
                totalCount = totalCount + writeCount;
                //检查合计题量
                if (totalCount <= 0) {
                    showErrorTip("【" + topicTitle + "】选题数量必须大于0");
                    return false;
                }
                //如果是打字题，则选择不能超过1题
                if (typeName == "chkTyping") {
                    if (totalCount > 1) {
                        showErrorTip("打字题最多能选择1题！");
                        return false;
                    }
                }
            }
            return true;
        }
        function SaveData() {
            //验证数据
            if ($("#txtTitle").val() == "") {
                showErrorTip("请填写模型名称！");
                return;
            }
            var chkCtrls = $(":checkbox[checked=true]");
            if (chkCtrls.length == 0) {
                showErrorTip("请选择题目类型！");
                return;
            }
            if (!CheckTopicCount("chkSingle", "txtSingle", "单项选择题"))
                return;
            if (!CheckTopicCount("chkMulti", "txtMulti", "多项选择题"))
                return;
            if (!CheckTopicCount("chkJudge", "txtJudge", "判断题"))
                return;
            if (!CheckTopicCount("chkFillBlank", "txtFillBlank", "填空题"))
                return;
            if (!CheckTopicCount("chkQA", "txtQA", "问答题"))
                return;
            if (!CheckTopicCount("chkTyping", "txtTyping", "打字题"))
                return;

            var QACount = _QA + _QAPublic;
            var modelData = { id: 0, name: $("#txtTitle").val(), type: 0, status: 0, model_score: _TotalScore, has_QA: (QACount > 0 ? true : false) };
            var modelDetList = new Array();
            if ($("#chkSingle").attr("checked")) {
                modelDetList.push({ id: 0, type: 1, rolecount: _Single, publiccount: _SinglePublic, topic: 0, score: parseInt($("#txtSingleScore").val()) });
            }
            if ($("#chkMulti").attr("checked")) {
                modelDetList.push({ id: 0, type: 2, rolecount: _Multi, publiccount: _MultiPublic, topic: 0, score: parseInt($("#txtMultiScore").val()) });
            }
            if ($("#chkJudge").attr("checked")) {
                modelDetList.push({ id: 0, type: 3, rolecount: _Judge, publiccount: _JudgePublic, topic: 0, score: parseInt($("#txtJudgeScore").val()) });
            }
            if ($("#chkFillBlank").attr("checked")) {
                modelDetList.push({ id: 0, type: 4, rolecount: _FillBlank, publiccount: _FillBlankPublic, topic: 0, score: parseInt($("#txtFillBlankScore").val()) });
            }
            if ($("#chkQA").attr("checked")) {
                modelDetList.push({ id: 0, type: 5, rolecount: _QA, publiccount: _QAPublic, topic: 0, score: parseInt($("#txtQAScore").val()) });
            }
            if ($("#chkTyping").attr("checked")) {
                modelDetList.push({ id: 0, type: 6, rolecount: _Typing, publiccount: _TypingPublic, topic: 0, score: parseInt($("#txtTypingScore").val()) });
            }
            $("#divContent").mask("数据处理中，请稍候......");
            var areRoles = chkAreRoleIDs.length > 0 ? chkAreRoleIDs : areRoleID;
            var params = { modelData: JSON2.stringify(modelData), modelDetList: JSON2.stringify(modelDetList), areRoleIDs: areRoles, Rnd: Math.random() };
            $.getJSON("../WebServer/ModelManage.ashx?Action=AddModel", params, function (msgData) {
                $("#divContent").unmask();
                if (msgData.IsSuccess == 1) {
                    showAlertOk("保存成功");
                    closeRefresh(false, "");
                    if (pWind) pWind.load_grid();
                }
                else
                    showErrorTip(msgData.Msg);
            });
        }
    </script>
</head>
<body>
    <div id="divContent" style="padding: 10px;">
        <table width="100%" cellpadding="1px" cellspacing="1px" class="table" id="tbModel">
            <tr style="height: 30px;">
                <td class="td" style="width: 10%;" align="right">
                    适用角色：
                </td>
                <td class="td">
                    <label id="lblAreRoleModel" style="color: Blue; font-weight: bold;">
                    </label>
                </td>
            </tr>
            <tr style="height: 30px;">
                <td class="td" style="width: 10%;" align="right">
                    模型名称：
                </td>
                <td class="td" style="padding: 3px">
                    <input id="txtTitle" style="width: 99%" type="text" class="l-text" />
                </td>
            </tr>
            <tr style="height: 30px;">
                <td class="td" style="width: 10%;" align="right">
                    题目类型：
                </td>
                <td class="td" style="font-size: 10pt;">
                    <input type="checkbox" id="chkSingle" /><label for="chkSingle">单项选择题</label>&nbsp;&nbsp;
                    <input type="checkbox" id="chkMulti" /><label for="chkMulti">多项选择题</label>&nbsp;&nbsp;
                    <input type="checkbox" id="chkJudge" /><label for="chkJudge">判断题</label>&nbsp;&nbsp;
                    <input type="checkbox" id="chkFillBlank" /><label for="chkFillBlank">填空题</label>&nbsp;&nbsp;
                    <input type="checkbox" id="chkQA" /><label for="chkQA">问答题</label>&nbsp;&nbsp;
                    <input type="checkbox" id="chkTyping" /><label for="chkTyping">打字题</label>&nbsp;&nbsp;
                </td>
            </tr>
        </table>
        <div>
            <table id="tableTotal" width="100%" style="height: 30px; border: 1px solid #35496A;
                background-color: #DFEAEA; display: none;">
                <tr valign="middle">
                    <td style="width: 20px">
                        &nbsp;
                    </td>
                    <td style="padding: 8px">
                        模型总分：<label id="lblTotalScore" style="font-weight: bold; color: Blue;">0</label>，共有题目<label
                            id="lblTotalCount" style="font-weight: bold; color: Blue;">0</label>题
                    </td>
                </tr>
            </table>
        </div>
        <p style="height: 5px" />
        <div>
            <table id="tableSingle" width="100%" style="background-color: #FEF9E7; border: 1px solid #76440C;
                display: none;">
                <tr>
                    <td style="height: 40px">
                        <div style="float: left">
                            &nbsp;&nbsp;&nbsp;&nbsp;单项选择题&nbsp;共<label id="lblSingleCount" style="color: Red;
                                font-weight: bold">0</label>题，每题</div>
                        <div style="float: left">
                            <input id="txtSingleScore" style="width: 50px; text-align: center" type="text" value="1"
                                class="l-text" onfocus="this.select();" /></div>
                        <div style="float: left">
                            分,&nbsp;&nbsp;共<label id="lblSingleScore" style="color: Red; font-weight: bold;">0</label>分</div>
                    </td>
                </tr>
                <tr style="height: 30px;" id="trSinglePublic">
                    <td style="padding-left: 20px">
                        <div style="float: left; width: 80px;">
                            公共题库</div>
                        <div style="float: left">
                            &nbsp;&nbsp;共&nbsp;</div>
                        <div style="float: left">
                            <input id="txtSingleCommon" style="width: 50px; text-align: center" type="text" class="l-text"
                                onfocus="this.select();" value="0" /></div>
                        <div style="float: left">
                            &nbsp;题&nbsp;<span style="color: Gray;">(题库题量：<label id="lblSingle_Public_TK"></label>题)</span></div>
                    </td>
                </tr>
                <tr style="height: 30px;" id="trSingle">
                    <td style="padding-left: 20px">
                        <div style="float: left; width: 80px;">
                            <label id="lblAreRoleSingle">
                            </label>
                            题库</div>
                        <div style="float: left">
                            &nbsp;&nbsp;共&nbsp;</div>
                        <div style="float: left">
                            <input id="txtSingle" style="width: 50px; text-align: center" type="text" class="l-text"
                                onfocus="this.select();" value="0" /></div>
                        <div style="float: left">
                            &nbsp;题&nbsp;<span style="color: Gray;">(题库题量：<label id="lblSingle_TK"></label>题)</span></div>
                    </td>
                </tr>
            </table>
        </div>
        <p style="height: 5px" />
        <div>
            <table width="100%" cellpadding="1px" cellspacing="1px" id="tableMulti" style="background-color: #D7F0DB;
                border: 1px solid #1D4067; display: none;">
                <tr>
                    <td>
                        <div style="float: left">
                            &nbsp;&nbsp;&nbsp;&nbsp;多项选择题&nbsp;共<label id="lblMultiCount" style="color: Red;
                                font-weight: bold"></label>题，每题</div>
                        <div style="float: left">
                            <input id="txtMultiScore" style="width: 50px; text-align: center" type="text" value="1"
                                class="l-text" onfocus="this.select();" /></div>
                        <div style="float: left">
                            分,&nbsp;&nbsp;共<label id="lblMultiScore" style="color: Red; font-weight: bold;">0</label>分</div>
                    </td>
                </tr>
                <tr style="height: 35px;" id="trMulitPublic">
                    <td style="padding-left: 20px">
                        <div style="float: left; width: 80px;">
                            公共题库</div>
                        <div style="float: left">
                            &nbsp;&nbsp;共&nbsp;</div>
                        <div style="float: left">
                            <input id="txtMultiCommon" style="width: 50px; text-align: center" type="text" class="l-text"
                                onfocus="this.select();" value="0" /></div>
                        <div style="float: left">
                            &nbsp;题&nbsp;<span style="color: Gray;">(题库题量：<label id="lblMulti_Public_TK"></label>题)</span></div>
                    </td>
                </tr>
                <tr style="height: 35px;" id="trMulti">
                    <td style="padding-left: 20px">
                        <div style="float: left; width: 80px;">
                            <label id="lblAreRoleMulti">
                            </label>
                            题库</div>
                        <div style="float: left">
                            &nbsp;&nbsp;共&nbsp;</div>
                        <div style="float: left">
                            <input id="txtMulti" style="width: 50px; text-align: center" type="text" class="l-text"
                                onfocus="this.select();" value="0" /></div>
                        <div style="float: left">
                            &nbsp;题&nbsp;<span style="color: Gray;">(题库题量：<label id="lblMulti_TK"></label>题)</span></div>
                    </td>
                </tr>
            </table>
        </div>
        <p style="height: 5px" />
        <div>
            <table width="100%" cellpadding="1px" cellspacing="1px" id="tableJudge" style="background-color: #F8F1D1;
                border: 1px solid #1D1C1B; display: none;">
                <tr>
                    <td>
                        <div style="float: left">
                            &nbsp;判断题&nbsp;共<label id="lblJudgeCount" style="color: Red; font-weight: bold"></label>题，每题</div>
                        <div style="float: left">
                            <input id="txtJudgeScore" style="width: 50px; text-align: center" type="text" value="1"
                                class="l-text" onfocus="this.select();" /></div>
                        <div style="float: left">
                            分,&nbsp;&nbsp;共<label id="lblJudgeScore" style="color: Red; font-weight: bold;">0</label>分</div>
                    </td>
                </tr>
                <tr style="height: 35px;" id="trJudgePublic">
                    <td style="padding-left: 20px">
                        <div style="float: left; width: 80px;">
                            公共题库</div>
                        <div style="float: left">
                            &nbsp;&nbsp;共&nbsp;</div>
                        <div style="float: left">
                            <input id="txtJudgeCommon" style="width: 50px; text-align: center" type="text" class="l-text"
                                value="0" onfocus="this.select();" /></div>
                        &nbsp;<div style="float: left">
                            题&nbsp;<span style="color: Gray;">(题库题量：<label id="lblJudge_Public_TK"></label>题)</span></div>
                    </td>
                </tr>
                <tr style="height: 35px;" id="trJudge">
                    <td style="padding-left: 20px">
                        <div style="float: left; width: 80px;">
                            <label id="lblAreRoleJudge">
                            </label>
                            题库</div>
                        <div style="float: left">
                            &nbsp;&nbsp;共&nbsp;</div>
                        <div style="float: left">
                            <input id="txtJudge" style="width: 50px; text-align: center" type="text" class="l-text"
                                value="0" onfocus="this.select();" /></div>
                        <div style="float: left">
                            &nbsp;题&nbsp;<span style="color: Gray;">(题库题量：<label id="lblJudge_TK"></label>题)</span></div>
                    </td>
                </tr>
            </table>
        </div>
        <p style="height: 5px" />
        <div>
            <table width="100%" cellpadding="1px" cellspacing="1px" id="tableFillBlank" style="background-color: #E1FDE7;
                border: 1px solid #0A3A05; display: none;">
                <tr>
                    <td>
                        <div style="float: left">
                            &nbsp;&nbsp;&nbsp;&nbsp;填空题&nbsp;共<label id="lblFillBlankCount" style="color: Red;
                                font-weight: bold"></label>题，每题</div>
                        <div style="float: left">
                            <input id="txtFillBlankScore" style="width: 50px; text-align: center" type="text"
                                value="1" class="l-text" onfocus="this.select();" /></div>
                        <div style="float: left">
                            分,&nbsp;&nbsp;共<label id="lblFillBlankScore" style="color: Red; font-weight: bold;">0</label>分</div>
                    </td>
                </tr>
                <tr style="height: 35px;" id="trFillBlankPublic">
                    <td style="padding-left: 20px">
                        <div style="float: left; width: 80px;">
                            公共题库</div>
                        <div style="float: left">
                            &nbsp;&nbsp;共&nbsp;</div>
                        <div style="float: left">
                            <input id="txtFillBlankCommon" style="width: 50px; text-align: center" type="text"
                                class="l-text" value="0" onfocus="this.select();" /></div>
                        <div style="float: left">
                            &nbsp;题&nbsp;<span style="color: Gray;">(题库题量：<label id="lblFillBlank_Public_TK"></label>题)</span></div>
                    </td>
                </tr>
                <tr style="height: 35px;" id="trFillBlank">
                    <td style="padding-left: 20px">
                        <div style="float: left; width: 80px;">
                            <label id="lblAreRoleFillBlank">
                            </label>
                            题库</div>
                        <div style="float: left">
                            &nbsp;&nbsp;共&nbsp;</div>
                        <div style="float: left">
                            <input id="txtFillBlank" style="width: 50px; text-align: center" type="text" class="l-text"
                                value="0" onfocus="this.select();" /></div>
                        <div style="float: left">
                            &nbsp;题&nbsp;<span style="color: Gray;">(题库题量：<label id="lblFillBlank_TK"></label>题)</span></div>
                    </td>
                </tr>
            </table>
        </div>
        <p style="height: 5px" />
        <div>
            <table width="100%" cellpadding="1px" cellspacing="1px" id="tableQA" style="background-color: #F3EEEB;
                border: 1px solid #3D1610; display: none;">
                <tr>
                    <td>
                        <div style="float: left">
                            &nbsp;&nbsp;&nbsp;&nbsp;问答题&nbsp;共<label id="lblQACount" style="color: Red; font-weight: bold"></label>题，每题</div>
                        <div style="float: left">
                            <input id="txtQAScore" style="width: 50px; text-align: center" type="text" value="1"
                                class="l-text" onfocus="this.select();" />分,&nbsp;&nbsp;共<label id="lblQAScore" style="color: Red;
                                    font-weight: bold;">0</label>分<span></span></div>
                    </td>
                </tr>
                <tr style="height: 35px;" id="trQAPublic">
                    <td style="padding-left: 20px">
                        <div style="float: left; width: 80px;">
                            公共题库</div>
                        <div style="float: left">
                            &nbsp;&nbsp;共&nbsp;</div>
                        <div style="float: left">
                            <input id="txtQACommon" style="width: 50px; text-align: center" type="text" class="l-text"
                                value="0" onfocus="this.select();" /></div>
                        <div style="float: left">
                            &nbsp;题&nbsp;<span style="color: Gray;">(题库题量：<label id="lblQA_Public_TK"></label>题)</span></div>
                    </td>
                </tr>
                <tr style="height: 35px;" id="trQA">
                    <td style="padding-left: 20px">
                        <div style="float: left; width: 80px;">
                            <label id="lblAreRoleQA">
                            </label>
                            题库</div>
                        <div style="float: left">
                            &nbsp;&nbsp;共&nbsp;</div>
                        <div style="float: left">
                            <input id="txtQA" style="width: 50px; text-align: center" type="text" class="l-text"
                                value="0" onfocus="this.select();" /></div>
                        <div style="float: left">
                            &nbsp;题&nbsp;<span style="color: Gray;">(题库题量：<label id="lblQA_TK"></label>题)</span></div>
                    </td>
                </tr>
            </table>
        </div>
        <p style="height: 5px" />
        <div>
            <table width="100%" cellpadding="1px" cellspacing="1px" id="tableTyping" style="background-color: #E3DEF8;
                border: 1px solid #050552; display: none;">
                <tr>
                    <td>
                        <div style="float: left">
                            &nbsp;&nbsp;&nbsp;&nbsp;打字题&nbsp;共<label id="lblTypingCount" style="color: Red; font-weight: bold"></label>题，每题</div>
                        <div style="float: left">
                            <input id="txtTypingScore" style="width: 50px; text-align: center" type="text" value="1"
                                class="l-text" onfocus="this.select();" /></div>
                        <div style="float: left">
                            分,&nbsp;&nbsp;共<label id="lblTypingScore" style="color: Red; font-weight: bold;">0</label>分<span
                                style='color: Red'>（打字题最多选择1题）</span></div>
                    </td>
                </tr>
                <tr style="height: 35px;" id="trTypingPublic">
                    <td style="padding-left: 20px">
                        <div style="float: left; width: 80px;">
                            公共题库</div>
                        <div style="float: left">
                            &nbsp;&nbsp;共&nbsp;</div>
                        <div style="float: left">
                            <input id="txtTypingCommon" style="width: 50px; text-align: center" type="text" class="l-text"
                                value="0" onfocus="this.select();" /></div>
                        <div style="float: left">
                            &nbsp;题&nbsp;<span style="color: Gray;">(题库题量：<label id="lblTyping_Public_TK"></label>题)</span></div>
                    </td>
                </tr>
                <tr style="height: 35px;" id="trTyping">
                    <td style="padding-left: 20px">
                        <div style="float: left; width: 80px;">
                            <label id="lblAreRoleTyping">
                            </label>
                            题库</div>
                        <div style="float: left">
                            &nbsp;&nbsp;共&nbsp;</div>
                        <div style="float: left">
                            <input id="txtTyping" style="width: 50px; text-align: center" type="text" class="l-text"
                                value="0" onfocus="this.select();" /></div>
                        <div style="float: left">
                            &nbsp;题&nbsp;<span style="color: Gray;">(题库题量：<label id="lblTyping_TK"></label>题)</span></div>
                    </td>
                </tr>
            </table>
        </div>
        <div>
            <table width="100%" cellpadding="0" cellspacing="0" style="height: 100%;">
                <tr style="height: 30px">
                    <td align="center">
                        <input type="button" id="btnPost" value="保存" onclick="SaveData();" class="l-button"
                            style="display: inline" />
                        <input type="button" id="btnClose" value="关闭" class="l-button" style="display: inline" />
                    </td>
                </tr>
            </table>
        </div>
    </div>
</body>
</html>
